# Version: 0.0.1
FROM nginx
MAINTAINER ray "huzorro@gmail.com"
RUN mkdir -p /srv/portal && ln -sf /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime && rm -rf /etc/nginx/conf.d/default.conf \
&&  ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
ADD nginx/portal.conf /etc/nginx/conf.d/
ADD nginx/nginx.conf /etc/nginx/nginx.conf
ADD ./dist/ /srv/portal/
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]
